import { axios } from '@/utils/requestOfComponents'

export function addProject(data) {
    return axios({
      url: `/item/add`,
      method: 'Post',
      data: data
    })
  }
  export function removeProject(data) {
    return axios({
      url: `/item/remove`,
      method: 'Post',
      data: data
    })
  }
  export function editProject(data) {
    return axios({
      url: `/item/edit`,
      method: 'Post',
      data: data
    })
  }
  export function addItemType(data) {
    return axios({
      url: `/item/itemType/add`,
      method: 'Post',
      data: data
    })
  }
  export function editItemType(data) {
    return axios({
      url: `/item/itemType/edit`,
      method: 'Post',
      data: data
    })
  }
  export function getItemList(params) {
    return axios({
      url: `/item/getItemList`,
      method: 'GET',
      params: params
    })
  }
  export function editItem(data){
    return axios({
      url:'/item/edit',
      method:'post',
      data:data
    })
  }
  
  export function Search(params){
    return axios({
      url:`/item/itemList`,
      method:'get',
      params:params
    })
  }
  
  